package first;

import java.util.Scanner;

/**
 * @author Seon
 * @date 2022/10/27 23:29
 */
public class OperationClient {
    public static void main(String[] args) {
        double numberA, numberB;
        String operate;
        Scanner reader = new Scanner(System.in);
        System.out.println("请输入数字A");
        numberA = reader.nextInt();
        System.out.println("请输入运算符");
        reader.next();
        operate = reader.nextLine();
        System.out.println("请输入数字B");
        reader.next();
        numberB = reader.nextInt();
        double result = Operation.getResult(numberA, numberB, operate);
        System.out.println("计算完成，结果为：" + result);
    }
}
